package org.wmq.transferordersystem.model.Entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
/*shipper 发货人*/
public class Order extends BaseEntity{
    private String status;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDate orderTime;
    private Long shipperId;
    private String shipperAddress;
    private String shipperPhone;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDate shipTime;
    private Long receiverId;
    private String receiverAddress;
    private String receiverPhone;
    private List<Logistics> logistics;
}
